package com.example.eurekaribbon;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import javax.annotation.Resource;
@RestController
public class Hello {
    @Resource
    RestTemplate restTemplate;
    @RequestMapping(value = "/hello")
    public  String hello(){
            return restTemplate.getForObject("http://DEMO/hello",String.class);
    }
}
